import { Layout } from '@/utils/routerHelper'

const { t } = useI18n()

const inspectionRouter: AppRouteRecordRaw[] = [
  {
    path: '/inspection-info-management',
    component: Layout,
    redirect: '/inspection-info-management/organization-qualification',
    name: 'InspectionInfoManagement',
    meta: {
      title: '检验信息管理',
      icon: 'ep:office-building',
      alwaysShow: true
    },
    children: [

      {
        path: 'organization-qualification',
        component: () => import('@/views/InspectionInfoManagement1/OrganizationQualification/index.vue'),
        name: 'OrganizationQualification',
        meta: {
          title: '承检机构管理'
        }
      },
      {
        path: 'user-info/add',
        component: () => import('@/views/InspectionInfoManagement1/userInfo/add.vue'),
        name: 'userInfoAdd',
        meta: {
          title: '用户管理',
          noTagsView: false,
          hidden: true,
          activeMenu: '/inspection-info-management/user-info/add'
        }
      },
      {
        path: 'organization-qualification/add',
        component: () => import('@/views/InspectionInfoManagement1/OrganizationQualification/add.vue'),
        name: 'OrganizationQualificationAdd',
        meta: {
          title: '新增承检机构',
          noTagsView: false,
          hidden: true,
          activeMenu: '/inspection-info-management/organization-qualification'
        }
      },
      {
        path: 'project-management',
        component: () => import('@/views/InspectionInfoManagement1/projectmanagemenr/index.vue'),
        name: 'ProjectManagement',
        meta: {
          title: '项目管理'
        }
      },
      {
        path: 'party-management',
        component: () => import('@/views/InspectionInfoManagement1/PartyManagement/index.vue'),
        name: 'PartyManagement',
        meta: {
          title: '甲方单位管理'
        }
      },
      {
        path: 'party-management/add',
        component: () => import('@/views/InspectionInfoManagement1/PartyManagement/add.vue'),
        name: 'PartyManagementAdd',
        meta: {
          title: '甲方单位',
          noTagsView: false,
          hidden: true,
          activeMenu: '/inspection-info-management/party-management'
        }
      },
      {
        path: 'sample-information',
        component: () => import('@/views/InspectionInfoManagement1/sampleinformation/index.vue'),
        name: 'SampleInformation',
        meta: {
          title: '样品信息管理'
        }
      },
      {
        path: 'sample-information/add',
        component: () => import('@/views/InspectionInfoManagement1/sampleinformation/add.vue'),
        name: 'SampleInformationAdd',
        meta: {
          title: '样品信息详情',
          noTagsView: false,
          hidden: true,
          activeMenu: '/inspection-info-management/sample-information'
        }
      },
      {
        path: 'organizationstaff',
        component: () => import('@/views/InspectionInfoManagement1/organizationstaff/index.vue'),
        name: 'OrganizationStaff',
        meta: {
          title: '承检机构资质及人员信息'
        }
      },
      {
        path: 'organizationstaff/detail',
        component: () => import('@/views/InspectionInfoManagement1/organizationstaff/detail.vue'),
        name: 'OrganizationStaffDetail',
        meta: {
          title: '承检机构资质及人员信息详情',
          noTagsView: false,
          hidden: true,
          activeMenu: '/inspection-info-management/organizationstaff'
        }
      },

      {
        path: 'InspectionInfo/add',
        component: () => import('@/views/InspectionInfoManagement1/InspectionInfo/add.vue'),
        name: 'InspectionInfoAdd',
        meta: {
          title: '检验信息详情',
          noTagsView: false,
          hidden: true,
          activeMenu: '/inspection-info-management/organizationstaff'
        }
      },
      {
        path: 'inspection-approval',
        component: () => import('@/views/InspectionInfoManagement1/InspectionInfoApproval/index.vue'),
        name: 'InspectionApproval',
        meta: {
          title: '检验信息审批'
        }
      },
      {
        path: 'inspection-detail',
        component: () => import('@/views/InspectionInfoManagement1/InspectionInfoApproval/InspectionDetail.vue'),
        name: 'InspectionDetail',
        meta: {
          title: '检验信息详情',
    
        }
      },
      {
        path: 'sampleInformationApproval',
        component: () => import('@/views/InspectionInfoManagement1/SampleInformationApproval/index.vue'),
        name: 'SampleInformationApproval',
        meta: {
          title: '样品信息审批'
        }
      },
      {
        path: 'sampleInformationApproval/details',
        component: () => import('@/views/InspectionInfoManagement1/SampleInformationApproval/details.vue'),
        name: 'SampleInformationApprovalDetails',
        meta:{
          title: '样品信息详情',
        }
      },
    ]
  },
  {
    path: '/inspection-info-management/project-management/add',
    component: Layout,
    name: 'ProjectManagementAdd',
    meta: {
      title: '项目管理',
      hidden: true,
      breadcrumb: false
    },
    children: [
      {
        path: '',
        component: () => import('@/views/InspectionInfoManagement1/projectmanagemenr/add.vue'),
        name: 'ProjectManagementAddForm',
        meta: {
          title: '项目管理',
          noTagsView: false,
          activeMenu: '/inspection-info-management/project-management',
          breadcrumb: false
        }
      }
    ]
  }
]

export default inspectionRouter 